package com.five.Page;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageList<T> {
    private Integer total = 0;
    private Integer currentPage;
    private Integer pageSize;
    private List<T> data = new ArrayList<>();

    public PageList(Integer total, List<T> data) {
        this.total = total;
        this.data = data;
    }
}
